<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<jsp:include page="../include/header.jsp" />
<jsp:include page="../include/navigation.jsp" />

<!-- <h2>My Friends</h2> -->
	
<div id="sideBar">
	<jsp:include page="inc_side.jsp" />
</div>
<div id="content">
	<div id="friendResults">
		<c:choose>
			<c:when test="${empty friends && empty search}">
				<c:choose>
					<c:when test="${!empty status && status eq 'pendingincomming'}">
						<p>You currently have no pending incoming friendship requests.</p>
					</c:when>
					<c:when test="${!empty status && status eq 'pendingoutgoing'}">
						<p>You currently have no pending outgoing friendship requests.</p>
					</c:when>
					<c:otherwise>
						<p>You currently have no friends yet, 
							<a href="${baseUrl}/friends/user/find">click here to search for friends</a>!</p>
					</c:otherwise>
				</c:choose>
			</c:when>
			<c:when test="${empty friends && !empty search}">
				<p>No friends found for &quot;${search}&quot;</p>
			</c:when>
			<c:otherwise>
				<jsp:include page="inc_friendresults.jsp" />
			</c:otherwise>
		</c:choose>
	</div>
</div>

<jsp:include page="../include/footer.jsp" />